<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="字符串综合练习获取身份信息.css">
</head>
<body>
<h2>例子1：从身份证号码中获取出生日期</h2>
	<div id="demo1">
		<div>
			<label>身份证号码</label>
			<input type="text" id="id" name="id" onblur="getId()">
		</div>
		
		<div>
			<label>出生日期</label>
			<input type="text" id="birthday" name="birthday" readonly="readonly">
			<label>年龄</label>
			<input type="text" id="age" name="age">
		</div>
		
		<div>
			<label>性别</label>
			<label>
	 			男<input type="radio" name="sex" id="n" value="male">
	 		</label>
	 		<label>
	 			女<input type="radio" name="sex" value="female" id="nv" checked="checked">
	 		</label>
		</div>
	</div>
<script type="text/javascript" src="字符串综合练习获取身份信息.js"></script>	
</body>
</html>